package org.swirrel.annotation;

import java.lang.annotation.Target;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

/**
 * <p>Title: </p>
 *
 * <p>Description: Promotes a method to an Action.
 * Components annotated with @ActionPerformed will use this Action instead of a listener.</p>
 *
 * <p>Copyright: Copyright (c) 2009</p>
 *
 * <p>Company: </p>
 *
 * @author Daniel Gronau
 * @version 1.0
 */
@Target({java.lang.annotation.ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface ActionWrapper {
  String acceleratorKey() default "";
  String actionCommandKey() default "";
  String largeIcon() default "";
  String longDescription() default "";
  int mnemonicKey() default java.awt.event.KeyEvent.CHAR_UNDEFINED;
  String name() default "";
  String shortDescription() default "";
  String smallIcon() default "";
  boolean threaded() default false;
}
